package zhengyanze.com.aipoemmax.guide.utils;

import android.util.Log;

/**
 * 打印日志工具类
 * Created by zheng on 2017/8/15.
 */

public class LogUtils {
    private static final int Verbose = 1;
    private static final int Debug = 2;
    private static final int Info = 3;
    private static final int Warn = 4;
    private static final int Error = 5;
    private static final int Nothing = 6;

    //控制打印信息级别
    private static final int level = Verbose;

    public static void v(String tag, String content) {
        if (level <= Verbose) {
            Log.v(tag, content);
        }
    }
    public static void d(String tag, String content) {
        if (level <= Debug) {
            Log.d(tag, content);
        }
    }
    public static void i(String tag, String content) {
        if (level <= Info) {
            Log.i(tag, content);
        }
    }
    public static void w(String tag, String content) {
        if (level <= Warn) {
            Log.w(tag, content);
        }
    }
    public static void e(String tag, String content) {
        if (level <= Error) {
            Log.e(tag, content);
        }
    }

}
